package com.modakai.med.client.cmn;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "med-service-cmn", path = "/cmn/admin/cmn/dict")
public interface DictFeignClient {

    @GetMapping("/getName/{parentCode}/{value}")
    String getName(@PathVariable String parentCode, @PathVariable String value);

    @GetMapping("/getName/{value}")
    String getName(@PathVariable String value);
}
